package com.lcj.odr.db.dao;


import com.lcj.odr.controller.form.OrderCommentForm;
import com.lcj.odr.db.pojo.OrderAppealEntity;
import com.lcj.odr.db.pojo.OrderCommentEntity;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

public interface OrderCommentDao {

    /**
     * 添加新评价
     * @param entity
     * @return
     */
    int insert(OrderCommentEntity entity);

    /**
     * 根据订单ID查询评价
     * @param param
     * @return
     */
    HashMap searchCommentByOrderId(Map param);

    int acceptAppeal(Map paramMap);

    int updateStatus(Map paramMap);

    int updateRateAndRemark(Map paramMap);

    HashMap searchCommentIdAndInstanceId(OrderCommentForm orderCommentForm);

    /**
     * 开启工作流
     * @param paramMap
     * @return rows
     */
    int startWorkflow(Map paramMap);

    /**
     * 插入申诉申请
     * @param orderAppealEntity
     * @return rows
     */
    int insertOrderCommentAppeal(OrderAppealEntity orderAppealEntity);

    public ArrayList<HashMap> searchCommentByPage(Map param);

    public long searchCommentCount(Map param);
}




